﻿<?php

use yii\db\Schema;
use yii\db\Migration;

class m150415_083916_condition extends Migration
{
    public function up()
    {
	$this->addColumn('{{%condition}}', 'is_limit', "int(1) NOT NULL DEFAULT '0' COMMENT '与use_whitelist 联合使用,当白名单时不判断该字段认为是whitelist，黑名单时，0 no_limit, 1 blacklist,' after use_whitelist");
    }

    public function down()
    {
        $this->dropColumn('{{%condition}}', 'is_limit');
        return true;
    }
}
